package com.hustcad.es.msg;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * return result response data entity
 *
 * @author shichengfei
 * @version V1.0.1
 * @date 2017-10-20 14:34
 * @Copyright 武汉天喻软件股份有限公司 All rights reserved.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Result implements Serializable {

    private static final long serialVersionUID = 6624385501224581085L;

    private Object data;

    private int count;

    private boolean success = false;

    private String msg;

    private String code = "0000";

    /**
     * 自定义异常
     */
    private Exception error;
}
